package com.tem.finance.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * Invoicing account 开票账户，客户开票账户 和 企业内部开票账户，公用同一个表
 * </p>
 *
 * @author 腾木
 * @since 2023-11-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("invoice_account")
@ApiModel(value="InvoiceAccount对象", description="Invoicing account 开票账户，客户开票账户 和 企业内部开票账户，公用同一个表")
public class InvoiceAccount implements Serializable {

    private static final long serialVersionUID=234366880890L;

    @ApiModelProperty(value = "开票账户")
    @TableId(value = "invoice_account_id", type = IdType.AUTO)
    private Long invoiceAccountId;

    @ApiModelProperty(value = "部门")
    @TableField("sys_branch_office_id")
    private Long sysBranchOfficeId;

    @ApiModelProperty(value = "客户")
    @TableField("customer_id")
    private Long customerId;

    @ApiModelProperty(value = "企业名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "纳税人识别号")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "电话")
    @TableField("telephone")
    private String telephone;

    @ApiModelProperty(value = "企业地址")
    @TableField("address")
    private String address;

    @ApiModelProperty(value = "说明")
    @TableField("msg")
    private String msg;

    @ApiModelProperty(value = "开户银行的名称")
    @TableField("bank_name")
    private String bankName;

    @ApiModelProperty(value = "银行账号")
    @TableField("bank_account")
    private String bankAccount;

    @ApiModelProperty(value = "状态")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "排序")
    @TableField("seq")
    private Integer seq;

    @TableField("deleted")
    @TableLogic
    private Integer deleted;


}
